import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";

// 代表每个请求前面都会添加/api
axios.defaults.baseURL = '/api';
// http://localhost:9000/api/student/list
// 转成：
// http://127.0.0.1:9000/student/list

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$axios = axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
